package com.xinchao.model;

/**
 * 终端异常报警日志
 *
 * @author linqiang
 * @date 2018-08-09 15:41
 */
public class DeviceWarnLog {
    private Long deviceWarnLogId;

    /**
     * 终端唯一设备编码(后台自动生成)
     */
    private String deviceCode;

    /**
     * 短信通知的管理人
     */
    private String administrator;

    /**
     * 管理人的电话
     */
    private String mobilePhone;

    /**
     * 管理人的邮箱
     */
    private String eMail;

    /**
     * 异常日志内容
     */
    private String warnContent;

    /**
     * 添加时间
     */
    private Long addTime;

    /**
     * 报警类型（0:离线异常）
     */
    private Integer warnType;
    /**
     * 终端所在城市
     */
    private String city;
    /**
     * 发送短信或邮件状态:0成功，1失败
     */
    private Integer sendStatus;

    public Long getDeviceWarnLogId() {
        return deviceWarnLogId;
    }

    public void setDeviceWarnLogId(Long deviceWarnLogId) {
        this.deviceWarnLogId = deviceWarnLogId;
    }

    public String getDeviceCode() {
        return deviceCode;
    }

    public void setDeviceCode(String deviceCode) {
        this.deviceCode = deviceCode == null ? null : deviceCode.trim();
    }

    public String getAdministrator() {
        return administrator;
    }

    public void setAdministrator(String administrator) {
        this.administrator = administrator == null ? null : administrator.trim();
    }

    public String getMobilePhone() {
        return mobilePhone;
    }

    public void setMobilePhone(String mobilePhone) {
        this.mobilePhone = mobilePhone == null ? null : mobilePhone.trim();
    }

    public String geteMail() {
        return eMail;
    }

    public void seteMail(String eMail) {
        this.eMail = eMail == null ? null : eMail.trim();
    }

    public String getWarnContent() {
        return warnContent;
    }

    public void setWarnContent(String warnContent) {
        this.warnContent = warnContent == null ? null : warnContent.trim();
    }

    public Long getAddTime() {
        return addTime;
    }

    public void setAddTime(Long addTime) {
        this.addTime = addTime;
    }

    public Integer getWarnType() {
        return warnType;
    }

    public void setWarnType(Integer warnType) {
        this.warnType = warnType;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public Integer getSendStatus() {
        return sendStatus;
    }

    public void setSendStatus(Integer sendStatus) {
        this.sendStatus = sendStatus;
    }

    @Override
    public String toString() {
        return "DeviceWarnLog{" +
                "deviceWarnLogId=" + deviceWarnLogId +
                ", deviceCode='" + deviceCode + '\'' +
                ", administrator='" + administrator + '\'' +
                ", mobilePhone='" + mobilePhone + '\'' +
                ", eMail='" + eMail + '\'' +
                ", warnContent='" + warnContent + '\'' +
                ", addTime=" + addTime +
                ", warnType=" + warnType +
                ", city='" + city + '\'' +
                ", sendStatus=" + sendStatus +
                '}';
    }
}